home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH11 / 11-1-4.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-18  |  2.2 KB  |  78 lines

  1. VERSION 5.00
  2. Begin VB.Form frmFiles 
  3.    Caption         =   "Select a File"
  4.    ClientHeight    =   2820
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   5535
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   2820
  20.    ScaleWidth      =   5535
  21.    Begin VB.PictureBox picFileSpec 
  22.       Height          =   375
  23.       Left            =   120
  24.       ScaleHeight     =   315
  25.       ScaleWidth      =   2955
  26.       TabIndex        =   4
  27.       Top             =   2280
  28.       Width           =   3015
  29.    End
  30.    Begin VB.CommandButton cmdDisplay 
  31.       Caption         =   "Display Complete Name of File"
  32.       Height          =   495
  33.       Left            =   120
  34.       TabIndex        =   3
  35.       Top             =   1680
  36.       Width           =   3015
  37.    End
  38.    Begin VB.FileListBox filList 
  39.       Height          =   2235
  40.       Left            =   3600
  41.       TabIndex        =   2
  42.       Top             =   120
  43.       Width           =   1815
  44.    End
  45.    Begin VB.DirListBox dirList 
  46.       Height          =   1380
  47.       Left            =   1440
  48.       TabIndex        =   1
  49.       Top             =   120
  50.       Width           =   2055
  51.    End
  52.    Begin VB.DriveListBox drvList 
  53.       Height          =   315
  54.       Left            =   120
  55.       TabIndex        =   0
  56.       Top             =   120
  57.       Width           =   1215
  58.    End
  59. Attribute VB_Name = "frmFiles"
  60. Attribute VB_GlobalNameSpace = False
  61. Attribute VB_Creatable = False
  62. Attribute VB_PredeclaredId = True
  63. Attribute VB_Exposed = False
  64. Private Sub cmdDisplay_Click()
  65.   picFileSpec.Cls
  66.   picFileSpec.Print dirList.Path;
  67.   If Right(dirList.Path, 1) <> "\" Then
  68.       picFileSpec.Print "\";
  69.   End If
  70.   picFileSpec.Print filList.filename
  71. End Sub
  72. Private Sub dirList_Change()
  73.   filList.Path = dirList.Path
  74. End Sub
  75. Private Sub drvList_Change()
  76.   dirList.Path = drvList.Drive
  77. End Sub
  78.